﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microhard.Core.DBUtility;
using Micrhard.FMCG.Server.Models;

namespace Micrhard.FMCG.Server.Interface
{
    public interface ISubKA : IRepository<SubKAModel>
    {
        bool IsNameDuplicate(SubKAModel model);
        bool IsCustomeCodeDuplicate(string code);
        List<SubKAModel> GetKAByWeixinOpenID(string weixinOpenID);
        List<SubKAModel> GetKAByUserName(string userName);
        bool IsKACode(string code);
        bool IsUserManageKA(string weixinOpenID, string kaCode);
        List<SubKAModel> GetSubKAByKAID(Guid kaid);
        ExecutedResult UpdateSubKALocation(SubKAModel model);
        SubKAProtalInfoModel GetProtalInfo(Guid subkaID, DateTime protalDate);
        List<ProductSaledOfDayModel> GetSubKASaledProductDetail(Guid subkaID, DateTime fromdate, DateTime end, string sys);
        ExecutedResult AssignMonitor(SubKAModel model);
    }
}
